/**
 * 通话量详情页面
 * @author 陈涛
 * @date 2019-1-14 11:29
 */
import request from '@/assets/js/axios.js'
export default {
  /**
   * @author 陈涛
   * @information 获取通话量详情表格头部
   * @date 2019-1-14 11:32
   */
  getCallAmountInfoHeader () {
    return request.axios.get('/webInfo/statisticsHead')
  },
  /**
   * @author 陈涛
   * @information 获取通话量详情表格数据
   * @date 2019-1-14 13:43
   */
  getCallAmountInfoBody (data) {
    return request.axios.post('/webInfo/detailsInfo', data)
  },
  /**
   * @author 陈涛
   * @information 获取通话录音地址
   * @date 2019-1-25
   */
  getCallRecording (data) {
    return request.axios.get(`/webInfo/operation?callId=${data}`)
  },
  /**
   * @author 王磊
   * @information 总条数
   * @date 2019-3-14
   */
  detailTotalSize (model) {
    return request.axios.post(`/webInfo/detailsCount`, model)
  },
  /**
   * @author 赵美阳
   * @information 获取语音转文字内容
   * @date 2019-4-10
   */
  getCallText (data){
    return request.axios.post(`${request.callText}voicetotext/recordingtotext/record/url`,data)
  }
}
